<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<title>电话簿管理系统</title>
	</head>
	<body>
	<form name="form_modify" action="http://127.0.0.1:5000/doModifyPhone?id={{user['id']}}" method="POST">
			<table>
			<caption>电话簿管理</caption>
				<tr>
					<th>联系人</th>
					<td>
						<input type="text" name="username" size="10" value={{user.name}}></input>
					</td>
				</tr>
				<tr>
					<th>性别</th>
					<td>
						{% if user.sex=="M" %}
						    <input type="radio" name="sex" value="M" checked="checked">男</input>
						    <input type="radio" name="sex" value="W">女</input>
						{% else %}
						    <input type="radio" name="sex" value="M">男</input>
						    <input type="radio" name="sex" value="W" checked="checked">女</input>
						{% endif %}
					</td>
				</tr>
				<tr>
					<th>电话</th>
					<td>
						<input type="tel" name="phonenumber" size="20" value={{user.phone}}></input>
					</td>
				</tr>
				<tr>
					<th>邮箱</th>
					<td>
						<input type="email" name="email" value={{user.email}}></input>
					</td>
				</tr>
				<tr>
					<td>
						<input type="submit" name="提交"></input>
					</td>
				</tr>
			</table>

		</form>
	</body>
</html>
